package com.microservice.skeleton.upms.constraints;

import org.springframework.core.MethodParameter;

import java.util.List;

/**
 * @author: lijin
 * @date: 2018年11月07日
 */
public interface ConstraintReader {
    String CONSTRAINTS_ATTRIBUTE = "constraints";
    String OPTIONAL_ATTRIBUTE = "optionals";
    String DEPRECATED_ATTRIBUTE = "deprecated";
    String DEFAULT_VALUE_ATTRIBUTE = "default-value";

    List<String> getConstraintMessages(Class<?> javaBaseClass, String javaFieldName);

    List<String> getConstraintMessages(MethodParameter param);

    List<String> getOptionalMessages(Class<?> javaBaseClass, String javaFieldName);
}
